/**
 * @author Lifeng Wang
 * Created on 2009-4-17
 * Blog: http://hi.baidu.com/fandywang_jlu
 */
package relation.svm.libsvm;

/**
 * The Class svm_model.
 */
public class svm_model implements java.io.Serializable
{
	
	/** The Constant serialVersionUID. */
	private static final long serialVersionUID = 1L;

	/** The param. */
	svm_parameter param;	// parameter
	
	/** The nr_class. */
	int nr_class;		// number of classes, = 2 in regression/one class svm
	
	/** The l. */
	int l;			// total #SV
	
	/** The SV. */
	svm_node[][] SV;	// SVs (SV[l])
	
	/** The sv_coef. */
	double[][] sv_coef;	// coefficients for SVs in decision functions (sv_coef[k-1][l])
	
	/** The rho. */
	double[] rho;		// constants in decision functions (rho[k*(k-1)/2])
	
	/** The prob a. */
	double[] probA;         // pariwise probability information
	
	/** The prob b. */
	double[] probB;

	// for classification only

	/** The label. */
	int[] label;		// label of each class (label[k])
	
	/** The n sv. */
	int[] nSV;		// number of SVs for each class (nSV[k])
				// nSV[0] + nSV[1] + ... + nSV[k-1] = l
};
